package org.feifei.order.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import org.feifei.basic.domain.BaseDomain;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author forever
 * @Description:
 * @date 2021/12/19 22:38
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@Getter
@Setter
@EqualsAndHashCode
public class ProductOrderDetail extends BaseDomain {

    @ApiModelProperty("商品名称")
    private String name;
    @ApiModelProperty("商品图片")
    private String resources;
    @ApiModelProperty("成本价格")
    private BigDecimal costprice;
    @ApiModelProperty("售价")
    private BigDecimal saleprice;
    @ApiModelProperty("下架时间")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date offsaletime;
    @ApiModelProperty("上架时间")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date onsaletime;
    @ApiModelProperty("订单状态 -1 取消 0 未支付 1已支付")
    private Integer state;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @ApiModelProperty("创建时间")
    private Date createtime;
    @ApiModelProperty("销售量")
    private Long salecount;
    @ApiModelProperty("该订单属于娜个商品")
    private Long product_id;
    @ApiModelProperty("关联的订单")
    private Long order_id;


}
